package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.IcPosts;
import com.ruoyi.system.domain.query.PostUserLikeQuery;
import com.ruoyi.system.domain.query.WeChatEventQuery;
import com.ruoyi.system.domain.query.WeChatLoginQuery;

public interface WeChatService {
    /**
     * 小程序微信登录
     * @param loginQuery 登录参数
     * @return
     */
    AjaxResult login(WeChatLoginQuery loginQuery);

    /**
     * 获取该用户的事件
     * @param iuId
     * @return
     */
    AjaxResult getEventListByIuId(Long iuId);

    /**
     * 查询事件详情
     * @param eventId 事件id
     * @return
     */
    AjaxResult getEventDetailById(Long eventId);

    AjaxResult saveEventByQuery(WeChatEventQuery eventQuery);

    AjaxResult savePosts(IcPosts posts);

    AjaxResult getPostsDetailById(Long postId);

    AjaxResult getPostUserLike(PostUserLikeQuery likeQuery);

    AjaxResult addPostUserLike(PostUserLikeQuery likeQuery);
}
